import { createRouter,createWebHistory } from 'vue-router'



const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            redirect:'/home'   //重定向
        },
        {
            path:'/home',
            name:'home',
            component:() => import('@/views/Home.vue')
        },
        {
            path:'/imageGallery',
            name:'imageGallery',
            component:() => import('@/views/ImageGallery.vue')
        }
    ]
})


export default router